package com.atguigu.gmall.feign.item;

import com.atguigu.gmall.common.result.Result;
import com.atguigu.gmall.product.vo.SkuDataVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("service-item")
/**
 * 调用详情服务
 */
@RequestMapping("/api/inner/rpc/item")
public interface SkuDataFeign {
    @GetMapping("/sku/detail/{skuId}")
    Result<SkuDataVo> getSkuDataVo(@PathVariable("skuId") Long skuId);
}
